home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-20
/
bb21c.zip
/
SERVER.DOC
< prev
next >
Wrap
Text File
|
1993-02-15
|
3KB
|
70 lines
There are three commands for SERVERS
* ES options server file parms -- Execute a server. Example:
ES REQDIR D:\PATH\T17.EXE
ES [IZ] REQFIL DOS BATNAM
Use the second example for DOS commands and BAT files.
* EL -- Same as ES but will automatically do a GL after the server runs.
EL DUMMY BBLOOK.EXE
* EX options file parms -- Execute another program. Example:
EX D:\PATH\T17.EXE
EX DOS BATNAM
EX [L] BBLOOK.EXE
Use the second example for DOS commands and BAT files.
All of these commands execute DOS programs. In all cases, you must
specify a "file". This is the exact name (including extension) of the
program you want to run. Example XXX.COM, D:\YYY.EXE. You must have
the path if the program is not in the current directory.
Alternatively, you can specify the magic word called "DOS". BB will
then execute the program called COMMAND.COM and pass the parms to it.
In this manner you can execute DOS commands, batch files, etc.
The options specify what should be done before and after the actual DOS
program run. The options are specified in brackets. Possible values
are:
E -- Run EXPORT before the program
Q -- If no EXPORT file for input to server, skip server.
K -- Kill messages that are exported (only useful if E is specified)
I -- Run IMPORT after the program
Z -- Erase file that is imported (only useful if I is specified)
L -- Run GL after the program
A -- Run at any time. Don't check BBS busy
S -- Silent -- Supress all informational messages
O -- Copy the file portchan.OUT to the user executing the command
if it exists. The current portchan is accessible via the $y
parameter.
ES assumes the options are [EKIZ]
EL assumes the options are [L]
If you specify options on either EL or ES, those options replace
the defaults.
The difference between EX and ES is that ES includes a server name.
(Note: EL also requires a server name). Using the default options:
ES REQDIR D:\PATH\T17.EXE
is the same as
EXPORTK REQDIR.IN E REQDIR
EX D:\PATH\T17.EXE
IMPORTE REQDIR.OUT
E REQDIR means export messages to REQDIR and the @ field is blank or
this BBS.
When writing a server, try to keep to using IMPORT and EXPORT for
getting messages in and out of the BBS. This will allow you to continue
to run even after I change the file formats.
NOTE: Using the "A" option will allow your server to run even if the
BBS is busy. However, while the server is running, all other activity
is STOPPED so any server should run very very quickly.